package com.zz.cc.owner.app;

import android.content.Intent;
import android.os.Bundle;
import android.widget.TextView;

import com.zz.cc.owner.R;
import com.zz.cc.owner.TitleBaseActivity;

public class QrCodeResultActivity extends TitleBaseActivity{
	
	public static final String INDEX_QR_CODE = "index_qr_code";
	
	private TextView mQrCodeTextView;
	
	private String mQrCode;

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		
		Intent intent = getIntent();
		getArgumentsFromIntent(intent);
		
		setContentView(R.layout.activity_qrcode_result);

		initUI();
		fillView();
	}
	
	private void initUI() {
		mQrCodeTextView = (TextView) findViewById(R.id.result_qr_code);
	}
	
	private void fillView() {
		setCurrentTitle("洗车信息");
		mQrCodeTextView.setText(mQrCode);
	}
	
	private void getArgumentsFromIntent(Intent intent) {
		mQrCode = intent.getStringExtra(INDEX_QR_CODE);
	}
}
